
export default {
  StoreUser: {
    entity: { name: 'User', prefix: () => `store/${localStorage.getItem('storeId')}` },
    form: {
      fields: [
        { property: 'username', field_options: { label: '用户名' }},
        'phone',
        { property: 'email', field_options: { label: 'Email' }},
        { property: 'enabled', type: 'boolean', default_value: true, field_options: { label: '是否启用？' }},
        { property: 'plainPassword', field_options: { label: '密码' }}
      ]
    },
    list: {
      disabled_actions: ['delete'],
      list_display: [
        'id',
        { property: 'username', label: '用户名' },
        { property: 'enabled', type: 'boolean', label: '是否启用' },
        'createdTime'
      ]
    }
  }
}

